<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <!-- DeviceSn -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('DeviceSn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[sn]" id="c-local" class="form-control" value="{$row.sn}"/>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>

    <!-- DeviceType -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('DeviceType')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[model]" id="c-local" type="number"  class="form-control" value="{$row.model}"/>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>

    <!-- deviceName -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('deviceName')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[model_name]" id="c-local"  class="form-control" value="{$row.model_name}"/>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>

    <!-- AliasName -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('AliasName')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[alias_name]" id="c-local"  class="form-control" value="{$row.alias_name}"/>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>

    <!-- IsDefault -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('IsDefault')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_default]', ['1'=>__('Normal'), '0'=>__('Hidden')], $row.is_default)}
        </div>
    </div>

    <!-- Status -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Normal'), '0'=>__('Hidden')], $row.status)}
        </div>
    </div>

    <div class="panel">
        <div class="panel-heading">
            <button class="btn btn-primary">{:__('Device Status')}</button>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
